package com.tedu.springdemo.day01;

import java.io.Serializable;

/**
 * @author 董鹭
 * 创建Person对象
 * 属性
 * 方法
 * 构造器
 */

public class Person implements Serializable {
    private  String name;
    private  int age;

    //方法
    public void say(){
        System.out.println("说~");
    }
    public void eat(){
        System.out.println("吃~");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
//构造器 空参
    public Person(){
    }

}
